package nm.aleksey.shared;

import nm.aleksey.domain.Author;
import nm.aleksey.server.AuthorLocator;

import com.google.web.bindery.requestfactory.shared.EntityProxy;
import com.google.web.bindery.requestfactory.shared.EntityProxyId;
import com.google.web.bindery.requestfactory.shared.ProxyFor;

// Use Objectify ORM
//@ProxyFor(value = Author.class, locator = AuthorLocatorOfy.class)
// Use standard database interaction
@ProxyFor(value = Author.class, locator = AuthorLocator.class)
public interface CopyOfAuthorProxy extends EntityProxy {

  String getEmail();

  String getName();

  void setEmail(String email);

  void setName(String name);

  @Override
  EntityProxyId<CopyOfAuthorProxy> stableId();
}
